#ifndef _UTIL_H_
#define _UTIL_H_

namespace Medved
{
	
template <int n>
struct Int2Type
{
	enum { value = n };
};

template <class T>
struct Type2Type
{
	typedef T Type;
};

template <bool expr, class T1, class T2>
struct Select
{
	typedef T1 Result;
};

template <class T1, class T2>
struct Select<false, T1, T2>
{
	typedef T2 Result;
};

}

#endif
